/*
* @Author: Administrator
* @Date:   2016-11-21 18:14:52
* @Last Modified by:   Administrator
* @Last Modified time: 2016-11-22 11:10:29
*/

'use strict';

var marked = require('marked');

var markdownString = '```js\n console.log("hello"); \n```';


// Synchronous highlighting with highlight.js
marked.setOptions({
  highlight: function (code) {
    return require('highlight.js').highlightAuto(code).value;
  }
});

console.log(marked(markdownString));